﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;

namespace Amoo.Code.Common
{
    public static class ExtendMethods
    {
        public static DateTime ToDate(this string value)
        {
            DateTime dtValue;
            if (DateTime.TryParse(value, out dtValue))
                return dtValue;
            else
                return DateTime.MinValue;
        }
    }
}
